<?php
class content_HelperMapperFactory{
    public static function getInstance($type){
        if($type == ""){
            throw new Exception('Tipul nu este setat');
        }

        $class = $type."_Mapper";
        if(!class_exists($class)){
            throw new Exception("Clasa $class nu exista");
        }
        return new $class;
    }
    
}

?>
